public class nyu {
    class Solution {
        public int missingNumber(int[] nums) {
            int ret = 0;
            for(int x:nums){
                ret = (x^ret);
            }
            for(int i =0;i<=nums.length;i++){
                ret = (i^ret);
            }
            return ret;
        }
    }
}
